define(["jquery", "easy-admin"], function ($, ea) {
    var gid =$("#mbid").val();
    var init = {
        table_elem: '#currentTable',
        table_render_id: 'currentTableRenderId',
        index_url: 'mall.account/index?id='+gid
    };

    var Controller = {
        index: function () {
            ea.table.render({
                init: init,
                toolbar: ['refresh',
                    [],
                ],
                cols: [[
                    {type: "checkbox"},
                    {field: 'id', width: 80, title: 'ID'},
                    {field: 'nickName', minWidth: 80, title: '用户昵称'},
                    {field: 'money', minWidth: 100, title: '变动金额'},
                    {field: 'balance', minWidth: 100, title: '变动后余额'},
                    {field: 'change_type', minWidth: 80, selectList: {0: '平台扣除', 1: '商城消费',2:'提现',3:'分享返佣',4:'平台发放'}},
                    {field: 'create_time', minWidth: 80, title: '创建时间', search: 'range'}
                ]],
            });

            ea.listen();
        }
    };
    return Controller;
});